#include <project.h>
#include "Global.h"
#include "Timer0.h"
#include "./Common/MiniRTOS/Task.h"
#include "./Common/MiniRTOS/SoftTimer.h"


/********************************************
********************************************/
CY_ISR(ISR_Timer_1ms)
{
	if (TIMER_INTR_MASK_CC_MATCH == TIMER_GetInterruptSourceMasked())		// Check interrupt source
	{
		TIMER_ClearInterrupt(TIMER_INTR_MASK_CC_MATCH);						// Clear interrupt and then process Capture interrupt
		return;
	}
	TIMER_ClearInterrupt(TIMER_INTR_MASK_TC);	

    Timer_UpdateTicks();//更新节拍
}

